package cn.yitun.chat.yitunservercommonlib.dataentity.dto.login;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.BaseDto;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class OnlineUserDto extends BaseDto {
    private Long userId;
    /**
     * 用户uuid
     */
    private String userUuid;
    /**
     * socket code 与 在登录jwttoken成功后，websocket请求验证jwttoken时创建
     */
    private String sockCode;
    /**
     * jwt
     */
    private String token;
    /**
     *
     */
    private String ip;
    /**
     * 登录定位
     */
    private String ipAddr;
    /**
     *
     */
    private String username;
    /**
     *
     */
    private String nickName;

    public OnlineUserDto(Long userId , String sockCode){
        this.userId = userId;
        this.sockCode = sockCode;
    }
}
